<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>获得当前加载的页面</title>
</head>
<body>
<script>
    if (typeof navigator.geolocation != 'undefined') {
        location.replace('modern.html');
    } else {
        location.replace('legacy.html');
    }
</script>
</body>
</html>